package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {

    int insert(Customer record);

    int updateByPrimaryKey(Customer record);

    List<Customer> selectForList(QueryObject qo);

    void updateStatus(@Param("cid") Long cid, @Param("status") Integer status);


    void updateSellerId(@Param("newSellerId") Long newSellerId, @Param("customerId") Long customerId);
}